From 4df74981e6cdd93c29c216276c12bf7d2b5ac390 Mon Sep 17 00:00:00 2001 From: "cl349@arcadians.cl.cam.ac.uk" Date: Tue, 22 Feb 2005 01:15:04 +0000 Subject: [PATCH] bitkeeper revision 1.1230.2.2 (421a8798mvsMIGmWCHsDOB-iq7xzGg) Bring back the console_{putc,getc} set of functions, which export access to the console without exporting the sercon_handle. Signed-off-by: chris@xensource.com --- xen/drivers/char/console.c | 14 ++++++++++++++ xen/include/xen/console.h | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 0ae6aaece9..10dd4717c5 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -466,6 +466,20 @@ void console_force_lock(void) spin_lock(&console_lock); } +void console_putc(char c) +{ + serial_putc(sercon_handle, c); +} + +int console_getc(void) +{ + return serial_getc(sercon_handle); +} + +int irq_console_getc(void) +{ + return irq_serial_getc(sercon_handle); +} /* diff --git a/xen/include/xen/console.h b/xen/include/xen/console.h index 024840c0ad..f65633a1af 100644 --- a/xen/include/xen/console.h +++ b/xen/include/xen/console.h @@ -22,4 +22,8 @@ void console_endboot(int disable_vga); void console_force_unlock(void); void console_force_lock(void); +void console_putc(char c); +int console_getc(void); +int irq_console_getc(void); + #endif /* __CONSOLE_H__ */ -- 2.30.2